<div class="box box-solid">
    <div class="box-body table-responsive no-padding">
        <form role="form" action="#" method="post">
            <input type="hidden" name="user[sid]" value="<?php echo $user['user_sid']; ?>" />
            <div class="box-body">
                    <div class="form-group">
                        <label>账号</label>
                        <input type="text"  class="form-control" maxlength="20" readonly="readonly" value="<?php echo $user['user_sid']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <?php if(!empty($user['avatar'])):?>
                    <div class="form-group">
                        <label>头像</label>
                        <img style="width:200px;height:200px;" src="<?php echo WxUtil::getGoodsImgUrl($user['avatar']);?> " />
                     </div>
                     <?php endif;?>

                    <div class="form-group">
                        <label>姓名</label>
                        <input type="text" name='user[name]' class="form-control" maxlength="20" value="<?php echo $user['name']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <?php if(isset($user['nickname'])):?>
                    <div class="form-group">
                        <label>昵称</label>
                        <input type="text" name='user[nickname]' class="form-control" maxlength="20" value="<?php echo $user['nickname']; ?>">
                        <p class="help-blockk"></p>
                    </div>
                    <?php endif;?>

                    <div class="form-group">
                        <label>身份证号</label>
                        <input type="text" name='user[idcard]' class="form-control" maxlength="20" value="<?php echo $user['idcard']; ?>">
                        <p class="help-blockk"></p>
                    </div>
                      

                        <div class="form-group">
                            <label>身份证照</label>
                             <img src="<?php echo WxUtil::getGoodsImgUrl($user['idcard_photo'],300,300)?>"  />
                            <p class="help-blockk"></p>
                        </div> 

                    <div class="form-group">
                    <label class="control-label" for="form-field-1">状态:</label>
                    <div class="controls">
                        <select  name='user[status]'  class="form-control  name">
                            <option <?php if(!empty($user['status'])&&$user['status']==1) echo 'selected' ?> value="1">正常</option>
                            <option <?php if(!empty($user['status'])&&$user['status']==2) echo 'selected' ?> value="2">禁用</option>
                        </select>
                    </div>
                </div>

                    <div class="box-footer">
                        <script type="text/javascript">
                            $('#update_run_man').click(function(){
                                $('#is_run_man_input').val(1); 
                            })
                            $('#edit_input').click(function(){
                                $('#is_run_man_input').val(2); 
                            })
                        </script>
                        <a href="<?php echo $this->createUrl('user/list'); ?>">返回用户列表</a>
                    </div>
            </div>
        </form>
    </div>
</div>
<!-- <script>
    $(function(){
        $("input[name='user[name]']").blur(function(){
            $(this).validate(['required', 'name']);
        });
        $("form").submit(function(){
            validateResult = true;
            $("input[name='user[name]']").validate(['required', 'name']);
            return validateResult
        })
    })
</script> -->